<#escape x as (x)!?html>
    <head>
        <script type="text/javascript">
            var menuId = "Settings_Hotel";
            var providerAuthenticationIndex = 0;
            var template;

            $(function () {
                template = $("#template").html();
            });

            $(function () {
                var newContent = $("#result").html().replace(new RegExp("&lt;", "g"), '<').replace(new RegExp("&gt;", "g"), '>');
                $("#result").html(newContent);
            });
            function check_input() {
                if ($("#importHotels").find("input[name='sourceFile']").eq("0").val().length == 0) {
                    alert("please input a file.");
                    return;
                }
                $("#importHotels").submit();
            }
        </script>
    </head>
    <body>

    <form enctype="multipart/form-data" method="post" id="importHotels" action="batchImport.action">
        <fieldset>
            <legend>
                <span class="title">Import Hotel</span>
            </legend>
            <div align="right">
                <ul>
                    <li>
                        <input class="btn" type="button" value="Back" onclick="window.location.href='./query.action'"/>
                    </li>
                </ul>
            </div>
            <table class="property_table">
                <tr>
                    <td>
                        PropertyID|DerbyPassport|Name<br>
                        888|Synxis-888|Aqua Hotel Bertran<br>
                        999|Synxis-999|Hotel & Spa Ferrer Janeiro<br>
                    </td>
                </tr>
                <tr>
                    <td>
                        <label>
                            <input type="file" name="sourceFile" size="100" style="height: 30px">
                        </label>
                    </td>
                    <td><input type="button" onclick="check_input();" value="upload" class="btn"></td>
                </tr>
            </table>
        </fieldset>
    </form>
    <span id="result" style="font-weight:bold;font-size: 10pt;color: blue;">${result}</span>
    </body>
</#escape>
